﻿@using CaptchaMvc.HtmlHelpers
@model Doan.Forum.Models.ResendConfirmModel
@{
    ViewBag.Title = "LogOn";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@if (ViewBag.ResendErr != null)
{
    <div class="alert alert-block fade in alert-error">
        <a href="#" data-dismiss="alert" class="close">&times;</a>
        @ViewBag.ResendErr
    </div>
}

@if (ViewBag.ResendSucc != null)
{
    <div class="alert alert-block fade in alert-success">
        <a href="#" data-dismiss="alert" class="close">&times;</a>
        @ViewBag.ResendSucc
    </div>
}

@using (Html.BeginForm("ResendConfirm", "Account", FormMethod.Post))
{
    <legend class="span7">Gửi lại mã xác nhận</legend>
    <div class="box-logon">
        <div class="editor-label ">
            <span>Tên đăng nhập</span>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UserName)
            @Html.ValidationMessageFor(model => model.UserName)
        </div>
        <div class="editor-label">
            <span>Mã xác thực</span>
        </div>
        <div class="editor-field">
            @Html.Captcha("Đổi mã khác", "Nhập vào mã xác thực", 4, "Is required field.")
            @ViewBag.ErrorMessage
        </div>
        <div class="btnLogon">
            <input type="submit" value="Gửi lại mã"  class="btn btn-success btn-large"/>
        </div>
    </div>
}